package com.sino.dataworks.job;

import cn.hutool.core.date.DateField;
import cn.hutool.core.date.DateUtil;
import com.sino.dataworks.util.DataworksUtil;
import com.sino.dataworks.util.JobVarUtil;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

public class RunManualDagNodesJob implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
//        if(!JobVarUtil.bizDate.equals("2023-10-31 00:00:00")){
//            DataworksUtil.runManualDagNodes(JobVarUtil.bizDate,"mpp临时抽数","datawarehouse_pro","27672",10022L);
//        }
//        Date newDate = DateUtil.offset(DateUtil.parseDate(JobVarUtil.bizDate), DateField.DAY_OF_MONTH, -1);
//        System.out.println(JobVarUtil.bizDate);
//        JobVarUtil.bizDate=DateUtil.format(newDate, "yyyy-MM-dd") + " 00:00:00";
    }

}
